package com.zd.service.lmpl;/**
 * @Description: LogisticszdServicelmpl
 * @Author:pioneer
 * @Date: 2021-07-12
 * @Version:v1.0
 */

import com.zd.mapper.LogisticszdMapper;
import com.zd.service.lnter.LogisticszdServicelnter;
import com.zzg.entity.Logistics;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: LogisticszdServicelmpl
 * @Author:pioneer
 * @Date: 2021-07-12
 * @Version:v1.0
 */
@Service
public class LogisticszdServicelmpl implements LogisticszdServicelnter {
    @Autowired
    public LogisticszdMapper logisticszdMapper;
    /**
     * 查询物流信息
     *
     * @return 物流集合
     */
    @Override
    public List<Logistics> selectLogistics() {
        return logisticszdMapper.selectLogistics ();
    }

    /**
     * 根据物流id修改物流信息
     *
     * @param forwardingUnit 物流单位
     * @param phone          联系电话
     * @param logisticsid    物流id
     * @return
     */
    @Override
    public int updateLogistics(String forwardingUnit, String phone, String logisticsid) {
        return logisticszdMapper.updateLogistics (forwardingUnit,phone,logisticsid);
    }
}
